package org.ghost.wechat.platform.dto.wechat.user;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author 01
 */
public class WeChatBatchGetUserUnionReqDTO implements Serializable {
    private static final long serialVersionUID = -483513651223606833L;

    private List<WeChatBatchGetUserItemDTO> userList;

    @JsonProperty(value = "user_list")
    public List<WeChatBatchGetUserItemDTO> getUserList() {
        return userList;
    }

    public void setUserList(List<WeChatBatchGetUserItemDTO> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return "WeChatBatchGetUserUnionReqDTO{" +
                "userList=" + userList +
                '}';
    }

    public static class WeChatBatchGetUserItemDTO implements Serializable {
        private static final long serialVersionUID = 8252613946207939126L;

        private String openId;
        /**
         * 返回国家地区语言版本，zh_CN 简体，zh_TW 繁体，en 英语
         */
        private String lang;

        @JsonProperty(value = "openid")
        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getLang() {
            return lang;
        }

        public void setLang(String lang) {
            this.lang = lang;
        }

        @Override
        public String toString() {
            return "WeChatBatchGetUserItemDTO{" +
                    "openId='" + openId + '\'' +
                    ", lang='" + lang + '\'' +
                    '}';
        }
    }
}
